package com.csg.ioms.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * <p></p>
 *
 * @author George Chan
 * @version 1.0
 * @date 2020/3/26 13:12
 * @since JDK 1.8
 */
@Component
public class SchedulerServiceFallbackFactory implements FallbackFactory<SchedulerServiceFallback> {
    @Override
    public SchedulerServiceFallback create(Throwable throwable) {
        return new SchedulerServiceFallback(throwable);
    }
}
